vhxubo's blog
关于

Linux 配置

底端配置

sudo apt install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
npm install -g tldr

~/.tldrrc

{
  "themes": {
    "ocean": {
      "commandName": "bold, cyan",
      "mainDescription": "",
      "exampleDescription": "green",
      "exampleCode": "cyan",
      "exampleToken": "dim"
    }
  },
  "theme": "ocean"
}

oh-my-zsh 配置

# 2021年 08月 18日 星期三 16:09:17 CST
# ~/.zshrc
# cat ~/.zshrc | egrep -v '^#|^$' | xsel -b

if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export PATH=$HOME/bin:/usr/local/bin:$PATH
export ZSH="/home/vhxubo/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
z
cp
git
sudo
extract
vi-mode
safe-paste
colored-man-pages
git-open
zsh-autosuggestions
zsh-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
export EDITOR='nvim'
export BROWSER='/usr/bin/google-chrome-stable'
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

自带插件

额外安装

git clone https://github.com/paulirish/git-open.git $ZSH_CUSTOM/plugins/git-open
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

终端

安装 https://github.com/dracula/dracula-theme zsh 主题: ys

启动窗口居中

https://forum.ubuntu.org.cn/viewtopic.php?t=389223 全局设置在:控制中心--窗口行为--窗口行为--高级--放置策略--居中